//
//  AY_BookHolder.m
//  AiYue
//
//  Created by boWen on 2023/11/14.
//

#import "AY_BookHolder.h"

@implementation AY_BookHolder

// 重写此方法
-(void)drawPlaceholderInRect:(CGRect)rect {
// 计算占位文字的 Size
CGSize placeholderSize = [self.placeholder sizeWithAttributes:@{NSFontAttributeName : self.font}];
[self.placeholder drawInRect:CGRectMake((rect.size.width - placeholderSize.width)/2, (rect.size.height - placeholderSize.height)/2, rect.size.width, rect.size.height) withAttributes:
    @{NSForegroundColorAttributeName : [UIColor whiteColor],
                 NSFontAttributeName : self.font}];
}




@end
